import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
} from 'typeorm';
@Entity()
export class Dinner {
  @PrimaryGeneratedColumn()
  id: number;
  @Column()
  name: string;
  @Column()
  price: number;
  @Column()
  cover: string;
  @Column()
  key: string;
  @Column()
  type: number;
  @Column({ name: 'sold_out', default: 0 })
  soldOut: number;
  @CreateDateColumn({ name: 'update_time' })
  updateTime: Date;
}
